package com.dody.agile.payment.database;


import com.dody.agile.payment.employee.Employee;

/**
 * @author ShiXin
 * @date 2019/4/9 20:21
 * @description ExamStack
 */
public class PayrollDatabaseImpl extends PayrollDatabase {
    @Override
    public void addUnionMember(Integer memberId, Employee e) {
        itsUnionMembers.put(memberId, e);
    }

    @Override
    public Employee getUnionMember(Integer memberId) {
        return itsUnionMembers.get(memberId);
    }

    @Override
    public Employee getEmployee(Integer empId) {
        return itsEmployees.get(empId);
    }

    @Override
    public void addEmployee(Integer empId, Employee employee) {
        itsEmployees.put(empId, employee);
    }

    @Override
    public void deleteEmployee(Integer empId) {
        itsEmployees.remove(empId);
    }
}
